package com.liuqi.openai.core.completion;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * openai api /completions 响应内容, choices 描述
 *
 * @author liuqi
 * @date 2025/7/18
 **/
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CompletionChoice {

    /**
     * 索引
     */
    private Integer index;

    /**
     * 文本
     */
    private String text;

    /**
     * finish_reason
     *
     * null、stop、length
     */
    private String finishReason;

}
